package me.xiaoyan.java.spring.mapper;

import me.xiaoyan.java.spring.po.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface UserMapper {
    @Select("select * from users where id=#{id}")
    public User findUserById(Integer id);
    @Select("select * from users ")
    public List<User> findAll();
}
